<?php include incTemplate('header');?>
<script type="text/javascript">
$(function(){
	//setTitle('管理中心');
	$('#tablist').tabs('add',{
		title:'系统主页',
		content:'<iframe src=\'/admin.php/admin/main\' width="100%" height="100%" frameborder="0" scrolling="auto"/>',
		closable:false
	});
});
function showtab(title,url){
	if(!$('#tablist').tabs('exists',title)){
		$('#tablist').tabs('add',{
			title:title,
			content:'<iframe src='+url+' width="100%" height="100%" frameborder="0" scrolling="auto"/>',
			closable:true
		});
	}else{
		$('#tablist').tabs('select',title);
	}
}
function changeEditLang($lang){
	window.location.href="/admin.php/admin/changelang/"+$lang;
}
</script>
</head>
<body class="easyui-layout">
		<div region="north" collapse="false" style="height:60px;background-color:#E0ECFF;padding:8px;line-height:20px;">
			<span class="fl" style="font-weight:bolder;font-size:18px;">网站管理中心</span>
			<span class="fr tar" >
			当前编辑版本：<select onchange="changeEditLang(this.value)">
			<?php 
			if($_SESSION['editlang'] == 'cn' ){
			?>
			<option value="cn" selected="selected">中文</option>
			<option value="en">English</option>
				<?php
			}else{
				?>
			<option value="cn">中文</option>
			<option value="en" selected="selected">English</option>
				<?php
			}
			?>
			</select><br>
			管理员：<?php echo $_SESSION['adminuser']['loginname'];?>&nbsp;&nbsp;<a href="/admin.php/admin/out" target="_parent">退出</a>
			</span>
		</div>
		<div region="west" split="true" title="菜单栏" style="width:120px;padding1:1px;overflow:hidden;background-color:#E0ECFF;text-align:center;">
				<div class="menulist" style="overflow:auto;">
					<ul>
						<li><a href="javascript:showtab('系统主页','/admin.php/admin/main')">系统主页</a></li>
						<li><a href="javascript:showtab('关于我们','/admin.php/mapinfo/showKey/aboutus')">关于我们</a></li>
						<li><a href="javascript:showtab('产品展示','/admin.php/product/index')">产品展示</a></li>
						<li><a href="javascript:showtab('新闻中心','/admin.php/news/index')">新闻中心</a></li>
						<li><a href="javascript:showtab('资质证书','/admin.php/cert/index')">资质证书</a></li>
						<li><a href="javascript:showtab('销售网络','/admin.php/mapinfo/showsalenet')">销售网络</a></li>
						<li><a href="javascript:showtab('在线留言','/admin.php/message/index')">在线留言</a></li>
						<li><a href="javascript:showtab('联系我们','/admin.php/mapinfo/showKey/contactus')">联系我们</a></li>
						<li><a href="javascript:showtab('系统设置','/admin.php/syscfg/index')">系统设置</a></li>
						<li><a href="javascript:showtab('修改密码','/admin.php/admin/showupdatepwd')">修改密码</a></li>
					</ul>
				</div>
		</div>
		<div region="center" style="overflow:hidden;">
			<div class="easyui-tabs" id="tablist" fit="true" border="false">
			</div>
		</div>
</body>
</html>